package org.graduation.model.common.project;

public enum TaskStatus {
    READY(0),
    DOING(1),
    END(2);

    private int value;

    TaskStatus(Integer val) {
        this.value = val;
    }

    public static TaskStatus valueOf(Integer val) {
        for (TaskStatus taskStatus : TaskStatus.values()) {
            if (taskStatus.getValue() == val) {
                return taskStatus;
            }
        }
        return null;
    }

    public int getValue() {
        return value;
    }
}
